package com.menghanjun.mhjresourcesharing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.menghanjun.mhjresourcesharing.entity.TUser;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author menghanjun
 * @since 2023-08-11
 */
@Repository
public interface TUserMapper extends BaseMapper<TUser> {

    List<TUser> getUserList(TUser user, int offset, int limit);


    void editUserStatus(TUser user);
    /**
     * 获取所有过期用户
     * @return
     */
    List<TUser> getExpireListUser();

    void editUser(TUser user);

    void editUserPassWord(long userid, String password);

    void editUserEmail(long userid, String email);

    void deleteUser(long id);
}
